'use strict';

const Controller = require('egg').Controller;

class MoviesController extends Controller {

  // 新闻列表页
  async index () {
    // 获取数据显示到新闻页面
    let list = await this.ctx.service.movie.getMoviesList();
    // this.ctx.body = list;
    await this.ctx.render('movies', {
      list
    })
  }

}

module.exports = MoviesController;